package BlackJack.Model.VO
{

	public class Player
	{
		private var _ADMIN:uint;
		private var _BONUS:String;
		private var _CLOTHES:uint;
		private var _EXP:uint;
		private var _GGRING:String;
		private var _GID:int;
		private var _GPOINT:int;
		private var _ID:String;
		private var _LEVEL:int;
		private var _LUCK:int;
		private var _MODEL:int;
		private var _NICKNAME:String;
		private var _PPOINT:int;
		private var _RICH:String;
		private var _SRICH:String;
		private var _SUBT:int;
		private var _TPOINT:int;
		private var _VIP:String;

		public function Player()
		{
		}

		//	Propertie Set
		/**	管理者(?) */
		public function set ADMIN(value:uint):void
		{
			_ADMIN = value;
		}

		/**	紅利加倍戒指到期日 */
		public function set BONUS(value:String):void
		{
			_BONUS = value;
		}

		/**	服裝編號 */
		public function set CLOTHES(value:uint):void
		{
			_CLOTHES = value;
		}

		/**	經驗值 */
		public function set EXP(value:uint):void
		{
			_EXP = value;
		}

		/**	京城戒指到期日 */
		public function set GGRING(value:String):void
		{
			_GGRING = value;
		}

		/**	黃金城ID */
		public function set GID(value:int):void
		{
			_GID = value;
		}

		/**	金幣 */
		public function set GPOINT(value:int):void
		{
			_GPOINT = value;
		}

		/**	帳號 */
		public function set ID(value:String):void
		{
			_ID = value;
		}

		/**	等級 */
		public function set LEVEL(value:int):void
		{
			_LEVEL = value;
		}

		/**	幸運值(?) */
		public function set LUCK(value:int):void
		{
			_LUCK = value;
		}

		/**	角色編號 */
		public function set MODEL(value:int):void
		{
			_MODEL = value;
		}

		/**	暱稱 */
		public function set NICKNAME(value:String):void
		{
			_NICKNAME = value;
		}

		/**	歡樂幣 */
		public function set PPOINT(value:int):void
		{
			_PPOINT = value;
		}

		/**	財神戒指到期日 */
		public function set RICH(value:String):void
		{
			_RICH = value;
		}

		/**	超級財神戒指到期日 */
		public function set SRICH(value:String):void
		{
			_SRICH = value;
		}

		/**	小計 */
		public function set SUBT(value:int):void
		{
			_SUBT = value;
		}

		/**	測試幣 */
		public function set TPOINT(value:int):void
		{
			_TPOINT = value;
		}

		/**	VIP到期日 */
		public function set VIP(value:String):void
		{
			_VIP = value;
		}

		/**	管理者(?) */
		public function get ADMIN():uint
		{
			return _ADMIN;
		}

		//	Propertie Get
		/**	紅利加倍戒指到期日 */
		public function get BONUS():String
		{
			return _BONUS;
		}

		/**	服裝編號 */
		public function get CLOTHES():uint
		{
			return _CLOTHES;
		}

		/**	經驗值 */
		public function get EXP():uint
		{
			return _EXP;
		}

		/**	京城戒指到期日 */
		public function get GGRING():String
		{
			return _GGRING;
		}

		/**	黃金城ID */
		public function get GID():int
		{
			return _GID;
		}

		/**	金幣 */
		public function get GPOINT():int
		{
			return _GPOINT;
		}

		/**	帳號 */
		public function get ID():String
		{
			return _ID;
		}

		/**	等級 */
		public function get LEVEL():int
		{
			return _LEVEL;
		}

		/**	幸運值(?) */
		public function get LUCK():int
		{
			return _LUCK;
		}

		/**	角色編號 */
		public function get MODEL():int
		{
			return _MODEL;
		}

		/**	暱稱 */
		public function get NICKNAME():String
		{
			return _NICKNAME;
		}

		/**	歡樂幣 */
		public function get PPOINT():int
		{
			return _PPOINT;
		}

		/**	財神戒指到期日 */
		public function get RICH():String
		{
			return _RICH;
		}

		/**	超級財神戒指到期日 */
		public function get SRICH():String
		{
			return _SRICH;
		}

		/**	小計 */
		public function get SUBT():int
		{
			return _SUBT;
		}

		/**	測試幣 */
		public function get TPOINT():int
		{
			return _TPOINT;
		}

		/**	VIP到期日 */
		public function get VIP():String
		{
			return _VIP;
		}

		public static function Parse(src:String):Player
		{
			var instance:Player = new Player();
			var lines:Array     = src.split('\t');
			var pairs:Array;
			var propertie:String;
			var value:Object;
			for each (var line:String in lines)
			{
				pairs = line.split('=');
				propertie = pairs[0];
				value = pairs[1];
				instance[propertie] = value;
			}
			return instance;
		}
	}
}
